package com.mycinema.dao;

import java.util.List;
import java.util.Map;
import java.util.HashMap;

import javax.validation.constraints.Pattern;

import org.apache.ibatis.annotations.Param;

import com.mycinema.entity.Movie;

public interface MovieDao {

	List<Movie> getMoviesWithIf(@Param("cid") int cid,@Param("title") String title);
	
	List<Movie> getMoviePage(@Param("cid") int cid,
			@Param("title") String title, @Param("startIndex") int startIndex,
			@Param("pageSize") int pageSize);
	

	int getRowsCount(@Param("cid") int cid,@Param("title") String title);
	
	Movie getById(@Param("id")int id);
	
	void updateMovie(Movie movie);
}
